//
//  OtherViewController.swift
//  CHSimpleUI
//
//  Created by cyptt on 2023/3/24.
//

import UIKit

class OtherViewController: UIViewController {

    private let maskView:TestMaskView = TestMaskView.init(frame: CGRect.init(x: 0, y: 0, width: 100, height: 200))
    
    var testArr:[Any] = ["1","a","b","c"]
    override func viewDidLoad() {
        super.viewDidLoad()

       
        print(testArr)
    }

    @IBAction func maskView(_ sender: UIButton) {
        
     
        self.maskView.backgroundColor = UIColor.red
        
        self.view.addSubview( self.maskView)
        
        self.maskView.show(location: .bottom)
        
        
    }
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        self.maskView.removeFromSuperview()
    }
    

    @IBAction func arrayChangeBtnClick(_ sender: UIButton) {
        
        testArr[1] = "nic"
        print(testArr)
    }
}
